package com.example.siyun.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;


/**
 * @Author 赵薇
 * @Date 2022/10/12 15:02
 * @PackageName:com.example.siyun.pojo
 * @ClassName: Coupons
 * @Description: TODO
 * @Version 1.0
 */

public class Coupons {
    /* 序号 */
    private int couponId;
    /**
     * 优惠卷编码
     * private int coupons_number;
     */

    /* 优惠卷名称 */
    private String couponName;
    /* 优惠金额 */
    private String couponMoney;
    /* 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp startTime;
    private String time1;

    /* 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp endTime;
    private String time2;

    /* 优惠剩余数 */
    private int couponRemainder;
    /* 优惠卷类型 */
    private String couponType;
    /* 上架/下架 */
    private int couponShelves;
    /* 发放数量 */
    private int couponNumber;
    /* 发放方式 */
    private String couponManner;
    /* 优惠券类型 */
    private String couponKind;
    /* 已使用 */
    private int couponUsed;
    /* 未使用 */
    private int couponNoused;
    /* 已过期 */
    private int couponExpired;
    /* 备注 */
    private String  remark;
    /* 用户编码 */
    private  int  userNumber;

    /* 引用用户实体类 */
    private UserList userList;

    public UserList getUserList() {
        return userList;
    }

    public void setUserList(UserList userList) {
        this.userList = userList;
    }

    public String getTime1() {
        return time1;
    }

    public void setTime1(String time1) {
        this.time1 = time1;
    }

    public String getTime2() {
        return time2;
    }

    public void setTime2(String time2) {
        this.time2 = time2;
    }

    public int getCouponId() {
        return couponId;
    }

    public void setCouponId(int couponId) {
        this.couponId = couponId;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public String getCouponMoney() {
        return couponMoney;
    }

    public void setCouponMoney(String couponMoney) {
        this.couponMoney = couponMoney;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    public int getCouponRemainder() {
        return couponRemainder;
    }

    public void setCouponRemainder(int couponRemainder) {
        this.couponRemainder = couponRemainder;
    }

    public String getCouponType() {
        return couponType;
    }

    public void setCouponType(String couponType) {
        this.couponType = couponType;
    }

    public int getCouponShelves() {
        return couponShelves;
    }

    public void setCouponShelves(int couponShelves) {
        this.couponShelves = couponShelves;
    }

    public int getCouponNumber() {
        return couponNumber;
    }

    public void setCouponNumber(int couponNumber) {
        this.couponNumber = couponNumber;
    }

    public String getCouponManner() {
        return couponManner;
    }

    public void setCouponManner(String couponManner) {
        this.couponManner = couponManner;
    }

    public String getCouponKind() {
        return couponKind;
    }

    public void setCouponKind(String couponKind) {
        this.couponKind = couponKind;
    }

    public int getCouponUsed() {
        return couponUsed;
    }

    public void setCouponUsed(int couponUsed) {
        this.couponUsed = couponUsed;
    }

    public int getCouponNoused() {
        return couponNoused;
    }

    public void setCouponNoused(int couponNoused) {
        this.couponNoused = couponNoused;
    }

    public int getCouponExpired() {
        return couponExpired;
    }

    public void setCouponExpired(int couponExpired) {
        this.couponExpired = couponExpired;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(int userNumber) {
        this.userNumber = userNumber;
    }

    @Override
    public String toString() {
        return "Coupons{" +
                "couponId=" + couponId +
                ", couponName='" + couponName + '\'' +
                ", couponMoney='" + couponMoney + '\'' +
                ", startTime=" + startTime +
                ", time1='" + time1 + '\'' +
                ", endTime=" + endTime +
                ", time2='" + time2 + '\'' +
                ", couponRemainder=" + couponRemainder +
                ", couponType='" + couponType + '\'' +
                ", couponShelves=" + couponShelves +
                ", couponNumber=" + couponNumber +
                ", couponManner='" + couponManner + '\'' +
                ", couponKind='" + couponKind + '\'' +
                ", couponUsed=" + couponUsed +
                ", couponNoused=" + couponNoused +
                ", couponExpired=" + couponExpired +
                ", remark='" + remark + '\'' +
                ", userNumber=" + userNumber +
                ", userList=" + userList +
                '}';
    }
}
